import React from 'react'
import Todolist from '../Todolist/Todolist'

export default function Todomain(props) {
  let { connet,delvalue,change } = props

  return (
    <ul className="todo-main">

      {
        connet.map((iteam, index) => {
          return <Todolist delvalue={delvalue} change={change} iteam={iteam} key={iteam.id} ></Todolist>
        })
      }


    </ul>
  )
}
